<div class="max-w-3xl mx-auto">
    <h2 class="text-xl font-semibold mb-6 text-center">目录权限检测</h2>
    
    <div class="overflow-x-auto">
        <table class="min-w-full bg-white">
            <thead>
                <tr class="bg-gray-50">
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">目录</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">所需权限</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">当前状态</th>
                </tr>
            </thead>
            <tbody class="divide-y divide-gray-200">
                <?php foreach ($dirPermission as $dir): ?>
                <tr>
                    <td class="px-6 py-4"><?php echo $dir['path']; ?></td>
                    <td class="px-6 py-4"><?php echo $dir['required']; ?></td>
                    <td class="px-6 py-4"><?php echo $dir['status']; ?></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>

    <div class="mt-8 text-center space-x-4">
        <a href="?action=env-check" class="bg-gray-500 text-white px-6 py-2 rounded-md hover:bg-gray-600 transition-colors">
            上一步
        </a>
        <a href="?action=db-config" class="bg-blue-500 text-white px-6 py-2 rounded-md hover:bg-blue-600 transition-colors">
            下一步
        </a>
    </div>
</div> 